package com.huli.feign;

import com.huli.dto.MailDto;
import com.huli.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("server-platform")
public interface MailClient {

    @PostMapping("sendCheckMail")
    Result sendCheckMail(String to);

    @PostMapping("sendSimpleMail")
    Result sendSimpleMail(MailDto mail);
}
